#include <iomanip>
#include <iostream>
#include <string>
#include "Student.h"
#include "StudentRegister.h"
#include "Course.h"

using namespace std;



void main3_2()
{
	cout << "main3_2" << endl;

	Student s1;
	Student s2("Gabriel", "Kasto", 2012);

	s1.Write();
	s2.Write();

	s1.Read();
	s1.Write();

	s1.SetEnrollmentYear(9999);
	s1.Write();
}

void main3_3()
{
	cout << "main3_3" << endl;

	string str;

	Student s1;
	Student s2("Gabriel", "Kasto", 2012);

	cout << s1 << endl;
	cout << s2 << endl;

	cin >> s1;
	getline(cin, str);
	cout << s1 << endl;

}

void main3_4()
{
	cout << "main3_4" << endl;

	Student s1("Gabriel", "Kasto", 2012);
	Student s2("Kalle", "Anka", 1990);
	Student s3("Joel", "Lindel", 2012);
	
	StudentRegister sr;

	sr.Add(s1);
	sr.Add(s2);
	sr.Add(s3);

	string s = sr.List();

	cout << s << endl;
}

void main3_5()
{
	cout << "main3_5" << endl;

	Student s1("Gabriel", "Kasto", 2012);
	Student s2("Kalle", "Anka", 1990);
	Student s3("Joel", "Lindel", 2010);
	
	StudentRegister sr;


	sr.Add(s1);
	sr.Add(s2);
	sr.Add(s3);

	sr.WriteToFile();
}

void main3_6()
{
	cout << "main3_6" << endl;

	StudentRegister sr;

	sr.ReadFromFile();
}

/*void main4_1()
{
	
	StudentRegister sr2;
		
	sr2.ReadFromFile();

	sr2.AddStudent();
	sr2.WriteToFile();
	sr2.DeleteStudent();
	sr2.WriteToFile();
	sr2.ReadFromFile();
	
	
	
}*/




int main()
{
	cout << "TEST AV FUNKTIONER" << endl;
	

	//main3_2();
	//main3_3();
	//main3_4();
	//main3_5();
	//main3_6();
	//main4_1();


	cin.get();
	cin.get();

	return 0;

}